Integrand size = 35, antiderivative size = 158 \[ \int \frac {\sec ^2(e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx=\frac {\sec (e+f x) \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{d f}-\frac {\sqrt {a+b} \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (e+f x)}{\sqrt {d} f} \]
[Out]
Time = 0.18 (sec) , antiderivative size = 158, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.057, Rules used = {2967, 2895} \[ \int \frac {\sec ^2(e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx=\frac {\sec (e+f x) \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{d f}-\frac {\sqrt {a+b} \tan (e+f x) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (\csc (e+f x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right )}{\sqrt {d} f} \]
[In]
[Out]
Rule 2895
Rule 2967
Rubi steps \begin{align*} \text {integral}& = \frac {\sec (e+f x) \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{d f}+\frac {1}{2} a \int \frac {1}{\sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}} \, dx \\ & = \frac {\sec (e+f x) \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{d f}-\frac {\sqrt {a+b} \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {d} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {d \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (e+f x)}{\sqrt {d} f} \\ \end{align*}
Time = 4.45 (sec) , antiderivative size = 198, normalized size of antiderivative = 1.25 \[ \int \frac {\sec ^2(e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx=\frac {4 a^2 \sqrt {-\frac {(a+b) \cot ^2\left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\sqrt {-\frac {a+b \sin (e+f x)}{a (-1+\sin (e+f x))}}\right ),\frac {2 a}{a-b}\right ) \sec (e+f x) \sqrt {-\frac {(a+b) \sin (e+f x) (a+b \sin (e+f x))}{a^2 (-1+\sin (e+f x))^2}} \sin ^4\left (\frac {1}{4} (2 e-\pi +2 f x)\right )+(a+b) (a+b \sin (e+f x)) \tan (e+f x)}{(a+b) f \sqrt {d \sin (e+f x)} \sqrt {a+b \sin (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(949\) vs. \(2(142)=284\).
Time = 2.59 (sec) , antiderivative size = 950, normalized size of antiderivative = 6.01
method | result | size |
default | \(\frac {\left (\sqrt {-a^{2}+b^{2}}\, \sqrt {-\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )-\sqrt {-a^{2}+b^{2}}+b}{\sqrt {-a^{2}+b^{2}}}}\, \sqrt {-\frac {a \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right )}{b +\sqrt {-a^{2}+b^{2}}}}\, F\left (\sqrt {\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}+b}{b +\sqrt {-a^{2}+b^{2}}}}, \frac {\sqrt {2}\, \sqrt {\frac {b +\sqrt {-a^{2}+b^{2}}}{\sqrt {-a^{2}+b^{2}}}}}{2}\right ) \sqrt {\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}+b}{b +\sqrt {-a^{2}+b^{2}}}}\, \cos \left (f x +e \right )+\sqrt {-\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )-\sqrt {-a^{2}+b^{2}}+b}{\sqrt {-a^{2}+b^{2}}}}\, \sqrt {-\frac {a \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right )}{b +\sqrt {-a^{2}+b^{2}}}}\, F\left (\sqrt {\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}+b}{b +\sqrt {-a^{2}+b^{2}}}}, \frac {\sqrt {2}\, \sqrt {\frac {b +\sqrt {-a^{2}+b^{2}}}{\sqrt {-a^{2}+b^{2}}}}}{2}\right ) \sqrt {\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}+b}{b +\sqrt {-a^{2}+b^{2}}}}\, b \cos \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}\, \sqrt {-\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )-\sqrt {-a^{2}+b^{2}}+b}{\sqrt {-a^{2}+b^{2}}}}\, \sqrt {-\frac {a \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right )}{b +\sqrt {-a^{2}+b^{2}}}}\, F\left (\sqrt {\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}+b}{b +\sqrt {-a^{2}+b^{2}}}}, \frac {\sqrt {2}\, \sqrt {\frac {b +\sqrt {-a^{2}+b^{2}}}{\sqrt {-a^{2}+b^{2}}}}}{2}\right ) \sqrt {\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}+b}{b +\sqrt {-a^{2}+b^{2}}}}+\sqrt {-\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )-\sqrt {-a^{2}+b^{2}}+b}{\sqrt {-a^{2}+b^{2}}}}\, \sqrt {-\frac {a \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )\right )}{b +\sqrt {-a^{2}+b^{2}}}}\, F\left (\sqrt {\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}+b}{b +\sqrt {-a^{2}+b^{2}}}}, \frac {\sqrt {2}\, \sqrt {\frac {b +\sqrt {-a^{2}+b^{2}}}{\sqrt {-a^{2}+b^{2}}}}}{2}\right ) \sqrt {\frac {a \csc \left (f x +e \right )-a \cot \left (f x +e \right )+\sqrt {-a^{2}+b^{2}}+b}{b +\sqrt {-a^{2}+b^{2}}}}\, b -\sqrt {2}\, b \cos \left (f x +e \right )+\tan \left (f x +e \right ) \sqrt {2}\, a +\sec \left (f x +e \right ) \sqrt {2}\, b \right ) \sqrt {2}}{2 f \sqrt {a +b \sin \left (f x +e \right )}\, \sqrt {d \sin \left (f x +e \right )}}\) | \(950\) |
[In]
[Out]
\[ \int \frac {\sec ^2(e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a} \sec \left (f x + e\right )^{2}}{\sqrt {d \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sec ^2(e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx=\int \frac {\sqrt {a + b \sin {\left (e + f x \right )}} \sec ^{2}{\left (e + f x \right )}}{\sqrt {d \sin {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {\sec ^2(e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a} \sec \left (f x + e\right )^{2}}{\sqrt {d \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {\sec ^2(e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a} \sec \left (f x + e\right )^{2}}{\sqrt {d \sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^2(e+f x) \sqrt {a+b \sin (e+f x)}}{\sqrt {d \sin (e+f x)}} \, dx=\int \frac {\sqrt {a+b\,\sin \left (e+f\,x\right )}}{{\cos \left (e+f\,x\right )}^2\,\sqrt {d\,\sin \left (e+f\,x\right )}} \,d x \]
[In]
[Out]